<h1>Resources</h1>

<table>
  <tr>
    <th>Title</th>
    <th>User</th>
    <th>Description</th>
    <th>Link</th>
  </tr>

<% for resource in @resources %>
<a name="res_<%= resource.id.to_s %>">
  <tr>
    <td><%=h resource.title %></td>
    <td><%=h resource.user_id %></td>
    <td><%=h resource.description %></td>
    <td><%= link_to image_tag('/images/go.png'), resource.link, :popup => true %></td>
    <td><%= link_to 'Show', resource %></td>
    <td><%= link_to 'Edit', edit_resource_path(resource) %></td>
	<td><%= resource.voting_interface %></td>
  </tr>
</a>
<% end %>
</table>

<br />


